package com.dingxin.ship_together_api.entity.vo.order;

import com.dingxin.ship_together_api.entity.OrderContacts;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Author: ctj
 * Date: 2022-09-19
 * Time: 15:13
 * description: 订单信息添加vo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderAddVo {
    /**
     * 航线id
     */
    @NotNull(message = "skuId不能为空")
    private Long skuId;

    /**
     * 订单总金额(分)，需要和sku的价格进一步比对
     */
    @NotNull(message = "订单总金额不能为空")
    private Long amount;

    /**
     * 联系人列表
     */
    @NotEmpty(message = "联系人列表不能为空")
    private List<OrderContacts> contactsList;

    /**
     * 座位列表，只需座位id
     */
    private List<Long> seatsIdList;

}
